Scripting > CxEditors > CxArsEditor Object > CxArsEditor Methods

CxArsEditor Methods

The CxArsEditor object contains the following methods:

Connect

The Connect method connects to a ARS.

Syntax

Connect(DomainSiteService As String)

Parameters

Parameter Required Description

DomainSiteService

Yes

The [Domain]Site.Service to which to connect.  A domain is optional. The service must be a valid ARS.

Example

The following example creates and connects the CxArsEditor object.

Sub

Dim ArsEditor

Set ArsEditor = CreateObject("CxEditors.CxArsEditor")

ArsEditor.Connect("[5410]CYGDEMO.ARS")

End Sub

Back to top

Delete

The Delete method prompts the usr to delete an ARS entry.

Syntax

Delete(QueueKey As String) As Integer

Parameters

Parameter Required Description

QueueKey

Yes

The Site.Service to delete.

Remarks

This method returns one of the following values:

  -1 or 0 An error occurred.
 

1

OK button was pressed.
  2 Cancel button was pressed.

Example

The following example prompts the user to delete CYGDEMO.OPCIS from the ARS.

Sub

Dim iRet

iRet = ArsEditor.Delete("CYGDEMO.OPCIS")

 

MsgBox iRet

End Sub

Back to top

Disconnect

The Disconnect method disconnects from the connected ARS.

Syntax

Disconnect()

Example

The following example disconnects the ArsEditor object.

Sub

ArsEditor.Disconnect

End Sub

Back to top

Edit

The Edit method launches an ARS property sheet for the specified entry.

Syntax

Edit(SiteService As String) As Integer

Parameters

Parameter Required Description

SiteService

Yes

The Site.Service to edit.

Remarks

This method returns one of the following values:

  -1 or 0 An error occurred.
 

1

OK button was pressed.
  2 Cancel button was pressed.

Example

The following example launches a property sheet for the CYGDEMO.OPCIS entry.

Sub

Dim iRet

iRet = ArsEditor.Edit("CYGDEMO.OPCIS")

 

MsgBox iRet

End Sub

Back to top

New

The New method launches a New Service dialog box for creating a new ARS entry.

Syntax

New() As Integer

Remarks

This method returns one of the following values:

  -1 or 0 An error occurred.
 

1

OK button was pressed.
  2 Cancel button was pressed.

Example

The following example launches a New Service dialog box.

Sub

Dim iRet

iRet = ArsEditor.New

 

MsgBox iRet

End Sub

Back to top

Let us know how we can improve this topic.

CygNet at weatherford.com

© 2020 Weatherford. All rights reserved.